package com.smmisia.shop.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * feign 调用
 *
 * @author smmisia
 * @date 2023/12/27
 */
@Component
@FeignClient(name = "auth-dev", path = "/user")
public interface AuthService {

    @GetMapping(value = "/info")
    User info(@RequestParam("id") Integer id);
}
